package com.yksj.healthtalk.ui.doctorstation;

import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.RadioGroup.OnCheckedChangeListener;

import com.yksj.healthtalk.comm.BaseFragmentActivity;
import com.yksj.healthtalk.ui.R;
import com.yksj.healthtalk.utils.ToastUtil;
/**
 * 医生服务 特殊收费人群-添加成员
 * @author Administrator
 *
 */
public class DoctorServiceAddMember extends BaseFragmentActivity implements OnClickListener, OnCheckedChangeListener {

	@Override
	protected void onCreate(Bundle arg0) {
		super.onCreate(arg0);
		setContentView(R.layout.doctor_service_addmember);
		initTitle();
		initView();
	}

	private void initView() {
		titleLeftBtn.setOnClickListener(this);
		titleTextV.setText("添加成员");
		RadioGroup mGroup= (RadioGroup) findViewById(R.id.tab_group);
		mGroup.setOnCheckedChangeListener(this);
	}

	
	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.title_back:
			onBackPressed();
			break;
		}
	}

	@Override
	public void onCheckedChanged(RadioGroup group, int checkedId) {
		RadioButton button= (RadioButton) findViewById(group.getCheckedRadioButtonId());
		ToastUtil.showBasicShortToast(getApplicationContext(), button.getText().toString());
		
	}
}
